package Tools;

import java.util.Timer;

public class Stats extends Thread{
	long refreshPeriod=10000;
	public Histogram activeHistogram;
	
	public Stats(){
		activeHistogram=new Histogram(20000,2);
	}
	
	public void run(){
		Timer timer=new Timer();
		timer.scheduleAtFixedRate(new obtainStats(this), refreshPeriod, refreshPeriod);
	}
	
	public Histogram getActiveHistogram(){
		return this.activeHistogram;
	}
	
	public void clearActiveHistogram(){
		activeHistogram=new Histogram(20000,2);
	}
	

}
